package com.example.emos.api.pay;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author jl
 * @description
 * @date 2019-11-08 14:03
 */
@Component
@ConfigurationProperties(prefix = "emos.pay")
public class PayProperties {

    private String appId; // 公众账号ID
    private String mchId; // 商户号
    private String key; // 生成签名的密钥
    private int connectTimeoutMs; // 连接超时时间
    private int readTimeoutMs;// 读取超时时间
    private String notifyUrl;   //微信支付成功后微信回调的自己后台的接口

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public int getConnectTimeoutMs() {
        return connectTimeoutMs;
    }

    public void setConnectTimeoutMs(int connectTimeoutMs) {
        this.connectTimeoutMs = connectTimeoutMs;
    }

    public int getReadTimeoutMs() {
        return readTimeoutMs;
    }

    public void setReadTimeoutMs(int readTimeoutMs) {
        this.readTimeoutMs = readTimeoutMs;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }
}
